@import './_reset.scss';
@import './_ver.scss';
@import './_mixin.scss';

/************** 导航 ***************/
nav {
    height: 36px;
    background-color: $nav_color;

    >main {
        @include Type;
        height: 100%;


        >ul {

            >.ToIndex {
                float: left;
                width: 100px;
                height: 100%;
                text-align: center;
                line-height: 36px;

                &:hover {
                    color: orange;
                }
            }

            >.list_login {
                width: 200px;
                height: 100%;
                float: left;
                margin-left: 100px;



                >div {
                    width: 200px;
                    height: 36px;
                    text-align: center;
                    line-height: 36px;

                }

                >.list_login_off {
                    display: none;

                    >a {
                        &:hover {
                            color: $font_hover;
                        }
                    }

                    &.active {
                        display: block;
                    }
                }

                >.login_login_on {
                    display: none;
                    cursor: pointer;

                    &.active {
                        display: block;
                    }

                    >ol {
                        display: none;
                        cursor: pointer;

                        >li {
                            border: 1px solid #f5f5f5;
                            cursor: pointer;

                            &:hover {
                                color: $font_hover;
                            }

                            >a{
                                cursor: pointer;
                                &:hover {
                                    color: $font_hover;
                                }
                            }
                        }
                    }
                }
            }

            >.goCart {
                float: right;
                width: 100px;
                height: 36px;
                text-align: center;
                line-height: 36px;
                color: $font_hover ;

            }
        }
    }
}

/************** 导航结束 ***************/

/************** 头部 ***************/
header {
    height: 90px;
    @include Type;
    overflow: hidden;

    >.list_logo {
        width: 190px;
        height: 90px;
        float: left;
        pointer-events: none;
    }

    >form {
        width: 530px;
        height: 36px;
        margin-left: 350px;
        margin-top: 25px;

        >input {
            width: 400px;
            height: 36px;
            float: left;
            box-sizing: border-box;
            padding-left: 30px;
            font-size: 18px;
            border-top: 2px solid $font_hover;
            border-bottom: 2px solid $font_hover;
            border-left: 2px solid $font_hover;
            border-radius: 5px 0 0 5px;

        }

        >button {
            width: 120px;
            height: 36px;
            float: left;
            box-sizing: border-box;
            border-top: 2px solid $font_hover;
            border-bottom: 2px solid $font_hover;
            border-right: 2px solid $font_hover;
            border-radius: 0px 5px 5px 0;
            background-color: $font_hover;
            color: white;
        }
    }
}

/************** 头部结束 ***************/

/************** 主体 ***************/
section {
    @include Type;

    >.list_top {
        min-height: 300px;
        margin: 10px;
        border: 1px solid $nav_color;
        box-sizing: border-box;
        padding: 20px;

        // 分类
        >.list_class {
            width: 100%;
            min-height: 100px;
            display: flex;

            >.lef {
                width: 60px;
                height: 100%;

                box-sizing: border-box;
                margin-top: 10px;
                margin-left: 10px;
            }

            >.rig {
                flex: 1;
                margin-left: 15px;
                display: flex;
                flex-wrap: wrap;

                >li {
                    width: 70px;
                    height: 30px;
                    border: 1px solid $nav_color;
                    margin: 5px;
                    text-align: center;
                    line-height: 30px;
                    cursor: pointer;


                    &.active {
                        background-color: $font_hover;
                        color: white;
                    }

                    &:hover {
                        background-color: $font_hover;
                        color: white;
                    }
                }
            }

        }

        // 筛选
        >.list_choose {
            width: 100%;
            min-height: 40px;
            display: flex;
            margin-top: 10px;

            >.lef {
                width: 60px;
                height: 100%;

                box-sizing: border-box;
                margin-top: 10px;
                margin-left: 10px;
            }

            >.rig {
                flex: 1;
                margin-left: 15px;
                display: flex;
                flex-wrap: wrap;

                >li {
                    width: 70px;
                    height: 30px;
                    border: 1px solid $nav_color;
                    margin: 5px;
                    text-align: center;
                    line-height: 30px;
                    cursor: pointer;


                    &.active {
                        background-color: $font_hover;
                        color: white;
                    }

                    &:hover {
                        background-color: $font_hover;
                        color: white;
                    }
                }
            }

        }

        // 折扣
        >.list_sale {
            width: 100%;
            min-height: 40px;
            display: flex;
            margin-top: 10px;

            >.lef {
                width: 60px;
                height: 100%;

                box-sizing: border-box;
                margin-top: 10px;
                margin-left: 10px;
            }

            >.rig {
                flex: 1;
                margin-left: 15px;
                display: flex;
                flex-wrap: wrap;

                >li {
                    width: 70px;
                    height: 30px;
                    border: 1px solid $nav_color;
                    margin: 5px;
                    text-align: center;
                    line-height: 30px;
                    cursor: pointer;


                    &.active {
                        background-color: $font_hover;
                        color: white;
                    }

                    &:hover {
                        background-color: $font_hover;
                        color: white;
                    }
                }
            }

        }

        // 排序
        >.list_sort {
            width: 100%;
            min-height: 40px;
            display: flex;
            margin-top: 10px;

            >.lef {
                width: 60px;
                height: 100%;

                box-sizing: border-box;
                margin-top: 10px;
                margin-left: 10px;
            }

            >.rig {
                flex: 1;
                margin-left: 15px;
                display: flex;
                flex-wrap: wrap;

                >li {
                    width: 70px;
                    height: 30px;
                    border: 1px solid $nav_color;
                    margin: 5px;
                    text-align: center;
                    line-height: 30px;
                    cursor: pointer;


                    &.active {
                        background-color: $font_hover;
                        color: white;
                    }

                    &:hover {
                        background-color: $font_hover;
                        color: white;
                    }
                }
            }

        }

        // 分页
        >.list_page {
            width: 100%;
            min-height: 40px;
            display: flex;
            margin-top: 10px;

            >.lef {
                width: 60px;
                height: 100%;

                box-sizing: border-box;
                margin-top: 10px;
                margin-left: 10px;
            }

            >.rig {
                flex: 1;
                margin-left: 15px;
                display: flex;
                flex-wrap: wrap;

                >li {
                    width: 70px;
                    height: 30px;
                    border: 1px solid $nav_color;
                    margin: 5px;
                    text-align: center;
                    line-height: 30px;
                    cursor: pointer;

                    &.pagelef,
                    &.pagerig {
                        width: 40px;
                        height: 20px;
                        margin-top: 10px;
                        line-height: 20px;
                        background-color: $font_hover;
                        cursor: pointer;
                        color: white;
                        font-size: 18px;

                        &.active {
                            background-color: gray;
                            cursor: not-allowed;
                        }
                    }

                    &.Page_total {
                        width: 70px;
                        height: 20px;
                        margin-top: 10px;
                        line-height: 20px;
                    }

                    >.list_pigeSize {
                        width: 100%;
                        height: 100%;
                        font-size: 18px;
                        text-align: center;
                        line-height: 100%;
                    }

                    &.choose_page {
                        margin-left: 30px;

                        >input {
                            width: 100%;
                            height: 100%;
                            font-size: 18px;
                            text-align: center
                        }


                    }

                    >.goToPage {
                        width: 100%;
                        height: 100%;
                        font-size: 16px;
                        text-align: center;
                        background-color: $font_hover;
                    }


                }
            }

        }
    }

    // 下部
    >.list_bottom {
        margin: 10px;
        min-height: 500px;
        display: flex;
        flex-wrap: wrap;

        // 商品
        >li {
            width: 280px;
            height: 420px;
            margin: 5px;
            background-color: white;
            border: 1px solid #f5f5f5;
            border-radius: 15px;
            box-sizing: border-box;
            padding: 5px;
            position: relative;
            cursor: pointer;

            >.goods_img {
                width: 100%;
                height: 270px;
                margin-bottom: 5px;
                pointer-events: none;
            }

            >.SALE {
                width: 50px;
                height: 20px;
                color: white;
                background-color: orange;
                position: absolute;
                top: 5px;
                right: 90px;
                text-align: center;
                pointer-events: none;
            }

            >.HOT {
                width: 50px;
                height: 20px;
                color: white;
                background-color: red;
                position: absolute;
                top: 5px;
                right: 10px;
                text-align: center;
                pointer-events: none;
            }

            >.jieshao {
                font-size: 12px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                pointer-events: none;

            }

            >.price {
                display: flex;
                margin-top: 10px;
                pointer-events: none;

                >span {
                    display: inline-block;
                    font-size: 16px;
                    margin-right: 20px;
                }

                >.new {
                    font-size: 24px;
                    color: red;
                }

                >.old {
                    line-height: 33px;
                    text-decoration: line-through;
                }

            }

            >button {
                margin-left: 5px;
                margin-top: 10px;
                padding: 3px;
                border-radius: 5px;
                color: white;
                background-color: $font_hover;
                cursor: pointer;
            }
        }
    }



    // 商品


}

/************** 主体结束 ***************/


/************** 尾部 ***************/
footer {
    @include Type;
    height: 300px;
    background-color: skyblue;
    text-align: center;
    line-height: 300px;
    font-size: 60px;
    color: white;
}